<!--$Id: article_list Author: liuricheng Time:2014-09-26 $-->
<style type="text/css">
	#article-list-table tr th{text-align: center;font-weight: 700;}
	#article-list-table tr td{color: #606060;}
</style>

<div class="panel panel-default">
	<table id="article-list-table" class="table table-bordered table-hover table-striped" width="100%">
			
		<tbody>
			<tr>
				<th width="100px">
					<!--<input onclick="selectAll(this)" class="form-control" type="checkbox" />-->编号
					<div>
						<!--<input onclick="selectAll(this)" type="checkbox">-->
						<!--<a href="javascript:listTable.sort('article_id');" title="点击对列表排序">-->
							
						<!--</a>-->
						<!--<img src="__PUBLIC__/image/admin/sort_desc.gif">-->
					</div>
				</th>
				<th width="160px">
					<!--<a href="javascript:listTable.sort('title');">-->
						文章标题
					<!--</a-->
				</th>
				<th>
					<!--<a href="javascript:listTable.sort('cat_id');">-->
						文章分类
					<!--</a>-->
				</th>
				<th>
					<!--<a href="javascript:listTable.sort('article_type');">-->
						文章重要性
					<!--</a>-->
				</th>
				<th>
					<!--<a href="javascript:listTable.sort('sort_order');">-->
						排序
					<!--</a>-->
				</th>
				<th>
					<!--<a href="javascript:listTable.sort('is_open');">-->
						是否显示
					<!--</a>-->
				</th>
				<th>
					<!--<a href="javascript:listTable.sort('add_time');">-->
						添加日期
					<!--</a>-->
				</th>
				<th>操作</th>
			</tr>
			<volist name="articleList" id="article">
			<tr id="tr_{$article.article_id}" class="data">
				<td class="first">
					<div class="first-c">
						<span class="first-checkbox">
							<input name="checkboxes[]" class="check-item" type="checkbox" value="{$article.article_id}">
						</span>
						<span class="first-text">{$article.article_id}</span>						
					</div>
				</td>
				<td>
					<span onclick="javascript:listTable.edit(this, 'title', {$article.article_id})" title="点击修改内容">
						{$article.title}
					</span>
				</td>
				<td align="left" >
					<span>{$article.cat_name}</span>
				</td>
				<td align="center" >
					<span>
					<if condition="$article['article_type'] eq 0">
						普通
					<else />
						置顶
					</if>
					</span>
				</td>
				<td align="center" >
					<span class="c-sort" onclick="listTable.edit(this, 'sort_order', {$article.article_id})">{$article.sort_order}</span>				
				</td>
				<td align="center" >				
					<span>
					<img src="__PUBLIC__/image/admin/no.gif" onclick="listTable.toggle(this, 'toggle_show', {$article.article_id})"></span>
				</td>
				<td align="center" >
					<span>{$article.add_time|date='Y-m-d  h:m:s',###}</span>
				</td>
				<td align="center" nowrap="true" >
					<style type="text/css">
						.action-list{}
						.action-list a{display: inline;font-size: 20px;vertical-align: middle;}
					</style>
					<div class="action-list">
						<a class="icon-scan" href="__URL__/article?id={$article.article_id}" target="_blank" title="查看"></a>
						<a class="icon-edit" href="__URL__/mod_article?id={$article.article_id}" target="_blank" title="编辑"></a>
						<a class="icon-delete" href="__URL__/mod_article?id={$article.article_id}" target="_blank" title="删除"></a>
						<a class="icon-look" href="__URL__/mod_article?id={$article.article_id}" target="_blank" title="移除"></a>
					</div>
				</td>
			</tr>
			</volist>
			<tr class="tfoot">
				<td class="first">&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td class="last">&nbsp;</td>
			</tr>
		</tbody>
	</table>
</div>

<div class="panel" style="text-align: center;">
	<include file="Template:paginator"/>
</div>

